package com.example.membersteward.entity;

import java.io.Serializable;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

/**
 * 会员等级表
 * @TableName member_level
 */
@Data
public class MemberLevel implements Serializable {
    /**
     * 等级id
     */
    @TableId(type = IdType.AUTO)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long levelId;

    /**
     * 最低区间(左开右闭)
     */
    private BigDecimal minPoint;

    /**
     * 最高区间(左开右闭)
     */
    private BigDecimal maxPoint;

    /**
     * 等级类型(最低是1，最高可控）
     */
    private String levelType;

    private static final long serialVersionUID = 1L;
}